package com.sgcc.service;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @BelongsProject: springcloud
 * @BelongsPackage: com.sgcc.service
 * @Author: LiMengshuai
 * @CreateTime: 2019-07-29 16:27
 * @Description: ${Description}
 */
@Component
public class ServiceFallbackFactory implements FallbackFactory<Service> {

    public Service create(Throwable throwable) {
        return new Service() {
            public String testFegin(String string) {
                return string+"统一处理服务降级";
            }
        };
    }
}
